// import React from 'react';
// import ReactDOM from 'react-dom/client';
// import App from './App';

// const root = ReactDOM.createRoot(document.getElementById('root'));
// root.render(
//   <React.StrictMode>
//     <App />
//   </React.StrictMode>
// );

import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import { HashRouter } from "react-router-dom";
import "react-vant/lib/index.css";
// 可以引入HashRouter或BrowserRouter
const root = ReactDOM.createRoot(document.getElementById("root"));
// 包裹App组件
root.render(
  <HashRouter>
    <App />
  </HashRouter>
);
